<template>
  <div>
    <button @click="logOUt">退出</button>
  </div>
</template>
<script>
export default {
  methods: {
    logOUt() {
      //   退出登录 要销毁token 清空sessionstrong
      window.sessionStorage.clear();
      // 跳转到登录页
      this.$router.push("/login");
    },
  },
};
</script>
<style scoped>
</style>